package com.atguigu.day03.test;

public class DemoText1 {
    public static void main(String[] args) {
        int x = 4;
        int y = 1;
        if (x > 2) {
            if (y > 2) {
                System.out.println(x + y);//if语句中只有一条语句可以省略{},但不推荐
            }
            System.out.println("atguigu");
        } else
            System.out.println("x 是 " + x);
    }
}

